package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 用户余额明细对象 sys_user_money
 *
 * @author jjp
 * @date 2020-04-26
 */
public class SysUserMoney extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 表主键
     */
    private Long moneyId;

    /**
     * $column.columnComment
     */
    private Long mobileUserId;

    /**
     * 当type为1时必填
     */
    @ApiModelProperty(name = "当type为1时必填")
    private Long withdrawalId;

    /**
     * 当type为0时必填二手物品订单id
     */
    @ApiModelProperty(name = "当type为0时必填二手物品订单id")
    private Long goodsOrderId;

    /**
     * $column.columnComment
     */
    private Double money;

    /**
     * 0-收入 1-提取 2-退货
     */
    @ApiModelProperty(name = "0-收入 1-提取 2-退货")
    private String moneyType;

    private Date createTime;

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setMoneyId(Long moneyId) {
        this.moneyId = moneyId;
    }

    public Long getMoneyId() {
        return moneyId;
    }

    public void setMobileUserId(Long mobileUserId) {
        this.mobileUserId = mobileUserId;
    }

    public Long getMobileUserId() {
        return mobileUserId;
    }

    public void setWithdrawalId(Long withdrawalId) {
        this.withdrawalId = withdrawalId;
    }

    public Long getWithdrawalId() {
        return withdrawalId;
    }

    public void setGoodsOrderId(Long goodsOrderId) {
        this.goodsOrderId = goodsOrderId;
    }

    public Long getGoodsOrderId() {
        return goodsOrderId;
    }

    public void setMoneyType(String moneyType) {
        this.moneyType = moneyType;
    }

    public String getMoneyType() {
        return moneyType;
    }
}
